package com.chc.web.user_complaint.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chc.valid.listValue;
import lombok.Data;
import lombok.NonNull;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * Created with IntelliJ IDEA
 *
 * @Author: chc
 * @Date: 2022/01/20/13:56
 * @Description:
 */
@Data
@TableName("user_complaint")
public class UserComplaint implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long complaintId;
    //业主id
    @NotNull(message = "业主id不能为空")
    private Long userId;
    //标题
    @NotBlank(message = "标题不能为空")
    private String title;
    //投诉内容
    @NotBlank(message = "投诉内容不能为空")
    private String complaintContent;
    //投诉时间
    private Date createTime;
    
    private String status;
}
